package com.jingdianjichi.auth.convert;

import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichi.auth.dto.AuthPermissionDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface AuthPermissionDTOConverter {
    AuthPermissionDTOConverter INSTANCE = Mappers.getMapper(AuthPermissionDTOConverter.class);
    AuthPermissionBO convertDtoToBoAuthPermission(AuthPermissionDTO authRoleDTO);
    AuthPermissionDTO convertBoAuthPermissionToDto(AuthPermissionBO authRoleBO);
    List<AuthPermissionDTO> convertBoAuthPermissionListToDtoList(List<AuthPermissionBO> authRoleBOList);
}
